package com.mjp.learn.multi.basic;

/**
 * 实现runnable类  实现线程
 */
public class Demo02 implements Runnable{
    @Override
    public void run() {
        for(int i = 0 ; i < 10 ; i ++){
            System.out.println(i);
        }
    }

    public static void main(String[] args) {
        Thread thread = new Thread(new Demo02());
        thread.start();
    }
}
